<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PDNSim: src/gmat.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">PDNSim
   </div>
   <div id="projectbrief">Power grid analysis</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">gmat.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gmat_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">BSD 3-Clause License</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">Copyright (c) 2020, The Regents of the University of Minnesota</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">All rights reserved.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">modification, are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* Redistributions of source code must retain the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">  list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">* Redistributions in binary form must reproduce the above copyright notice,</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">  this list of conditions and the following disclaimer in the documentation</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">  and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">* Neither the name of the copyright holder nor the names of its</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">  contributors may be used to endorse or promote products derived from</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">  this software without specific prior written permission.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#ifndef __IRSOLVER_GMAT_</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#define __IRSOLVER_GMAT_</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="node_8h.html">node.h</a>&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;db.h&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="gmat_8h.html#a25a6eb13135bc88c32c443ba735c8a14">   45</a></span>&#160;<span class="keyword">typedef</span> std::map&lt;int, std::map&lt;int, Node*&gt;&gt; <a class="code" href="gmat_8h.html#a25a6eb13135bc88c32c443ba735c8a14">NodeMap</a>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classGMat.html">   54</a></span>&#160;<span class="keyword">class </span><a class="code" href="classGMat.html">GMat</a></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classGMat.html#ad89367522ad38208488689b4146b6bbc">   58</a></span>&#160;  <a class="code" href="classGMat.html#ad89367522ad38208488689b4146b6bbc">GMat</a>(<span class="keywordtype">int</span> t_num_layers, <span class="keywordtype">int</span> t_numC4)</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      : m_num_layers(t_num_layers),</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        m_layer_maps(t_num_layers + 1, <a class="code" href="gmat_8h.html#a25a6eb13135bc88c32c443ba735c8a14">NodeMap</a>()),</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        m_numC4(t_numC4)</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  {  <span class="comment">// as it start from 0 and everywhere we use layer</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  }</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classGMat.html#aeb2bc57952d6046f91afac0bcb3a7243">   65</a></span>&#160;  <a class="code" href="classGMat.html#aeb2bc57952d6046f91afac0bcb3a7243">~GMat</a>()</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordflow">while</span> (!m_G_mat_nodes.empty()) {</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;      <span class="keyword">delete</span> m_G_mat_nodes.back();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;      m_G_mat_nodes.pop_back();</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    }</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <a class="code" href="classNode.html">Node</a>*      <a class="code" href="classGMat.html#a48cc4288be2ae357591bab12339e0114">GetNode</a>(<a class="code" href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a> t_node);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  <a class="code" href="classNode.html">Node</a>*      <a class="code" href="classGMat.html#a48cc4288be2ae357591bab12339e0114">GetNode</a>(<span class="keywordtype">int</span> t_x, <span class="keywordtype">int</span> t_y, <span class="keywordtype">int</span> t_l);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <span class="keywordtype">void</span>       <a class="code" href="classGMat.html#a96d512b19a257d2361eac59dacee218d">SetNode</a>(<a class="code" href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a> t_node_loc, <a class="code" href="classNode.html">Node</a>* t_node);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <a class="code" href="classNode.html">Node</a>*      <a class="code" href="classGMat.html#a96d512b19a257d2361eac59dacee218d">SetNode</a>(<span class="keywordtype">int</span> t_x, <span class="keywordtype">int</span> t_y, <span class="keywordtype">int</span> t_layer, <a class="code" href="node_8h.html#acf0ff4a0bb7e0c9b5900382cbd2aa614">BBox</a> t_bBox);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  <span class="keywordtype">void</span>       <a class="code" href="classGMat.html#aab1c09d83c7ad0b0b16d1c8059f1220b">InsertNode</a>(<a class="code" href="classNode.html">Node</a>* t_node);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keywordtype">void</span>       <a class="code" href="classGMat.html#a890e83e8d1d373e3858bd213b76c2da9">Print</a>();</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keywordtype">void</span>       <a class="code" href="classGMat.html#a1981ec0047b10ef19b2e4734921a5452">SetConductance</a>(<a class="code" href="classNode.html">Node</a>* t_node1, <a class="code" href="classNode.html">Node</a>* t_node2, <span class="keywordtype">double</span> t_cond);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  <span class="keywordtype">void</span>       <a class="code" href="classGMat.html#ab3e602af5a1537611ec1a8bfd798b688">InitializeGmatDok</a>();</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <a class="code" href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a>    <a class="code" href="classGMat.html#aa0f8d64bc65172c457d7d1d4a2156b79">GetNumNodes</a>();</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <a class="code" href="structCscMatrix.html">CscMatrix</a>* <a class="code" href="classGMat.html#a907a945858399a70cc5b77952b81d25a">GetGMat</a>();</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <span class="keywordtype">void</span>       <a class="code" href="classGMat.html#a0d8697945b060deaaf4bbd3a444aab6f">GenerateStripeConductance</a>(<span class="keywordtype">int</span>                        t_l,</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                                       odb::dbTechLayerDir::Value layer_dir,</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                                       <span class="keywordtype">int</span>                        t_x_min,</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                                       <span class="keywordtype">int</span>                        t_x_max,</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                                       <span class="keywordtype">int</span>                        t_y_min,</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                                       <span class="keywordtype">int</span>                        t_y_max,</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                                       <span class="keywordtype">double</span>                     t_rho);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <span class="keywordtype">void</span>       <a class="code" href="classGMat.html#a21ee1650f436e769255235d3b2fe8aa8">AddC4Bump</a>(<span class="keywordtype">int</span> t_loc, <span class="keywordtype">int</span> t_C4Num);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keywordtype">void</span>       <a class="code" href="classGMat.html#acc6b68783732ff34b6dd4098cb738836">GenerateCSCMatrix</a>();</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  std::vector&lt;Node*&gt; <a class="code" href="classGMat.html#a9bc88ff1d3a55795024e814de8c69617">GetAllNodes</a>();</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <a class="code" href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a>              m_n_nodes{0};</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keywordtype">int</span>                  m_num_layers;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <a class="code" href="structDokMatrix.html">DokMatrix</a>            m_G_mat_dok;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <a class="code" href="structCscMatrix.html">CscMatrix</a>            m_G_mat_csc;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  std::vector&lt;Node*&gt;   m_G_mat_nodes;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  std::vector&lt;NodeMap&gt; m_layer_maps;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  <span class="keywordtype">int</span>                  m_numC4{0};</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <span class="keywordtype">double</span> GetConductance(<a class="code" href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a> t_row, <a class="code" href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a> t_col);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  <span class="keywordtype">void</span>   UpdateConductance(<a class="code" href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a> t_row, <a class="code" href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a> t_col, <span class="keywordtype">double</span> t_cond);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <a class="code" href="classNode.html">Node</a>*  NearestYNode(NodeMap::iterator x_itr, <span class="keywordtype">int</span> t_y);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  <span class="keywordtype">double</span> GetConductivity(<span class="keywordtype">double</span> width, <span class="keywordtype">double</span> length, <span class="keywordtype">double</span> rho);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;};</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classGMat_html_aab1c09d83c7ad0b0b16d1c8059f1220b"><div class="ttname"><a href="classGMat.html#aab1c09d83c7ad0b0b16d1c8059f1220b">GMat::InsertNode</a></div><div class="ttdeci">void InsertNode(Node *t_node)</div><div class="ttdoc">Function to insert a node into the matrix. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:135</div></div>
<div class="ttc" id="node_8h_html"><div class="ttname"><a href="node_8h.html">node.h</a></div></div>
<div class="ttc" id="classGMat_html_ad89367522ad38208488689b4146b6bbc"><div class="ttname"><a href="classGMat.html#ad89367522ad38208488689b4146b6bbc">GMat::GMat</a></div><div class="ttdeci">GMat(int t_num_layers, int t_numC4)</div><div class="ttdoc">Constructor for creating the G matrix. </div><div class="ttdef"><b>Definition:</b> gmat.h:58</div></div>
<div class="ttc" id="node_8h_html_a5b622fe4354316a2f349615d150ae998"><div class="ttname"><a href="node_8h.html#a5b622fe4354316a2f349615d150ae998">NodeIdx</a></div><div class="ttdeci">int NodeIdx</div><div class="ttdef"><b>Definition:</b> node.h:42</div></div>
<div class="ttc" id="classNode_html"><div class="ttname"><a href="classNode.html">Node</a></div><div class="ttdoc">Node class which stores the properties of the node of the PDN. </div><div class="ttdef"><b>Definition:</b> node.h:65</div></div>
<div class="ttc" id="classGMat_html_aa0f8d64bc65172c457d7d1d4a2156b79"><div class="ttname"><a href="classGMat.html#aa0f8d64bc65172c457d7d1d4a2156b79">GMat::GetNumNodes</a></div><div class="ttdeci">NodeIdx GetNumNodes()</div><div class="ttdoc">Function that returns the number of nodes in the G matrix. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:246</div></div>
<div class="ttc" id="classGMat_html_ab3e602af5a1537611ec1a8bfd798b688"><div class="ttname"><a href="classGMat.html#ab3e602af5a1537611ec1a8bfd798b688">GMat::InitializeGmatDok</a></div><div class="ttdeci">void InitializeGmatDok()</div><div class="ttdoc">Function to initialize the sparse dok matrix. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:233</div></div>
<div class="ttc" id="structDokMatrix_html"><div class="ttname"><a href="structDokMatrix.html">DokMatrix</a></div><div class="ttdoc">Data structure for the Dictionary of Keys Matrix. </div><div class="ttdef"><b>Definition:</b> node.h:46</div></div>
<div class="ttc" id="classGMat_html_acc6b68783732ff34b6dd4098cb738836"><div class="ttname"><a href="classGMat.html#acc6b68783732ff34b6dd4098cb738836">GMat::GenerateCSCMatrix</a></div><div class="ttdeci">void GenerateCSCMatrix()</div><div class="ttdoc">Function which generates the compressed sparse column matrix. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:347</div></div>
<div class="ttc" id="classGMat_html_a96d512b19a257d2361eac59dacee218d"><div class="ttname"><a href="classGMat.html#a96d512b19a257d2361eac59dacee218d">GMat::SetNode</a></div><div class="ttdeci">void SetNode(NodeIdx t_node_loc, Node *t_node)</div><div class="ttdoc">Function to set attributes of the node with index and node pointer. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:120</div></div>
<div class="ttc" id="classGMat_html_a890e83e8d1d373e3858bd213b76c2da9"><div class="ttname"><a href="classGMat.html#a890e83e8d1d373e3858bd213b76c2da9">GMat::Print</a></div><div class="ttdeci">void Print()</div><div class="ttdoc">Function that prints the G matrix for debug purposes. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:193</div></div>
<div class="ttc" id="structCscMatrix_html"><div class="ttname"><a href="structCscMatrix.html">CscMatrix</a></div><div class="ttdoc">Data structure for the Compressed Sparse Column Matrix. </div><div class="ttdef"><b>Definition:</b> node.h:54</div></div>
<div class="ttc" id="classGMat_html_a9bc88ff1d3a55795024e814de8c69617"><div class="ttname"><a href="classGMat.html#a9bc88ff1d3a55795024e814de8c69617">GMat::GetAllNodes</a></div><div class="ttdeci">std::vector&lt; Node * &gt; GetAllNodes()</div><div class="ttdoc">Function to return a vector which contains a pointer to all the nodes. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:472</div></div>
<div class="ttc" id="node_8h_html_acf0ff4a0bb7e0c9b5900382cbd2aa614"><div class="ttname"><a href="node_8h.html#acf0ff4a0bb7e0c9b5900382cbd2aa614">BBox</a></div><div class="ttdeci">std::pair&lt; int, int &gt; BBox</div><div class="ttdef"><b>Definition:</b> node.h:41</div></div>
<div class="ttc" id="classGMat_html_aeb2bc57952d6046f91afac0bcb3a7243"><div class="ttname"><a href="classGMat.html#aeb2bc57952d6046f91afac0bcb3a7243">GMat::~GMat</a></div><div class="ttdeci">~GMat()</div><div class="ttdoc">Destructor of the G matrix. </div><div class="ttdef"><b>Definition:</b> gmat.h:65</div></div>
<div class="ttc" id="classGMat_html_a907a945858399a70cc5b77952b81d25a"><div class="ttname"><a href="classGMat.html#a907a945858399a70cc5b77952b81d25a">GMat::GetGMat</a></div><div class="ttdeci">CscMatrix * GetGMat()</div><div class="ttdoc">Function to return a pointer to the G matrix. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:254</div></div>
<div class="ttc" id="classGMat_html_a48cc4288be2ae357591bab12339e0114"><div class="ttname"><a href="classGMat.html#a48cc4288be2ae357591bab12339e0114">GMat::GetNode</a></div><div class="ttdeci">Node * GetNode(NodeIdx t_node)</div><div class="ttdoc">Function to return a pointer to the node with a index. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:46</div></div>
<div class="ttc" id="classGMat_html"><div class="ttname"><a href="classGMat.html">GMat</a></div><div class="ttdoc">G matrix class. </div><div class="ttdef"><b>Definition:</b> gmat.h:54</div></div>
<div class="ttc" id="classGMat_html_a1981ec0047b10ef19b2e4734921a5452"><div class="ttname"><a href="classGMat.html#a1981ec0047b10ef19b2e4734921a5452">GMat::SetConductance</a></div><div class="ttdeci">void SetConductance(Node *t_node1, Node *t_node2, double t_cond)</div><div class="ttdoc">Function to add the conductance value between two nodes. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:214</div></div>
<div class="ttc" id="classGMat_html_a0d8697945b060deaaf4bbd3a444aab6f"><div class="ttname"><a href="classGMat.html#a0d8697945b060deaaf4bbd3a444aab6f">GMat::GenerateStripeConductance</a></div><div class="ttdeci">void GenerateStripeConductance(int t_l, odb::dbTechLayerDir::Value layer_dir, int t_x_min, int t_x_max, int t_y_min, int t_y_max, double t_rho)</div><div class="ttdoc">Function to get the conductance of the strip of the power grid. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:272</div></div>
<div class="ttc" id="gmat_8h_html_a25a6eb13135bc88c32c443ba735c8a14"><div class="ttname"><a href="gmat_8h.html#a25a6eb13135bc88c32c443ba735c8a14">NodeMap</a></div><div class="ttdeci">std::map&lt; int, std::map&lt; int, Node * &gt; &gt; NodeMap</div><div class="ttdoc">Global variable which holds the G matrix. </div><div class="ttdef"><b>Definition:</b> gmat.h:45</div></div>
<div class="ttc" id="classGMat_html_a21ee1650f436e769255235d3b2fe8aa8"><div class="ttname"><a href="classGMat.html#a21ee1650f436e769255235d3b2fe8aa8">GMat::AddC4Bump</a></div><div class="ttdeci">void AddC4Bump(int t_loc, int t_C4Num)</div><div class="ttdoc">Function to add the voltage source based on C4 bump location. </div><div class="ttdef"><b>Definition:</b> gmat.cpp:337</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
